package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName web_contest
 */
@TableName(value ="web_contest")
@Data
public class WebContest implements Serializable {
    /**
     * 主键id
     */
    @TableId
    private String id;

    /**
     * 竞赛标题
     */
    private String title;

    /**
     * 竞赛描述
     */
    private String description;

    /**
     * 允许参加的竞赛人数 如果为空 说明不限制参加人数
     */
    private Long personNum;

    /**
     * 内容详情
     */
    private String content;

    /**
     * 封面地址
     */
    private String cover;

    /**
     * 活动地址
     */
    private String local;

    /**
     * 是否允许提交电子档
     */
    private String isEmail;

    /**
     * 是否收费
     */
    private String isToll;

    /**
     * 收取费用
     */
    private BigDecimal toll;

    /**
     * 竞赛开始时间
     */
    private Date startDate;

    /**
     * 竞赛结束时间
     */
    private Date endDate;

    /**
     * 是否使用系统自带的报名模板 0->使用 1->不使用
     */
    private Integer isSystem;

    /**
     * 主办方
     */
    private String organizer;

    /**
     * 发布者id
     */
    private String pushId;

    /**
     * 分类id
     */
    private String categoryId;

    /**
     * 报名开始时间
     */
    private Date enrollStartDate;

    /**
     * 报名结束时间
     */
    private Date enrollEndDate;

    /**
     * 
     */
    private Long participationNum;

    /**
     * 
     */
    private Long viewNum;

    /**
     * 
     */
    private String isComment;

    /**
     * 
     */
    private String isTop;

    /**
     * 竞赛状态
     */
    private String status;

    /**
     * 逻辑删除表示
     */
    private String isDel;

    /**
     * 
     */
    private String isTeam;

    /**
     * 
     */
    private Integer teamNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WebContest other = (WebContest) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getPersonNum() == null ? other.getPersonNum() == null : this.getPersonNum().equals(other.getPersonNum()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getCover() == null ? other.getCover() == null : this.getCover().equals(other.getCover()))
            && (this.getLocal() == null ? other.getLocal() == null : this.getLocal().equals(other.getLocal()))
            && (this.getIsEmail() == null ? other.getIsEmail() == null : this.getIsEmail().equals(other.getIsEmail()))
            && (this.getIsToll() == null ? other.getIsToll() == null : this.getIsToll().equals(other.getIsToll()))
            && (this.getToll() == null ? other.getToll() == null : this.getToll().equals(other.getToll()))
            && (this.getStartDate() == null ? other.getStartDate() == null : this.getStartDate().equals(other.getStartDate()))
            && (this.getEndDate() == null ? other.getEndDate() == null : this.getEndDate().equals(other.getEndDate()))
            && (this.getIsSystem() == null ? other.getIsSystem() == null : this.getIsSystem().equals(other.getIsSystem()))
            && (this.getOrganizer() == null ? other.getOrganizer() == null : this.getOrganizer().equals(other.getOrganizer()))
            && (this.getPushId() == null ? other.getPushId() == null : this.getPushId().equals(other.getPushId()))
            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
            && (this.getEnrollStartDate() == null ? other.getEnrollStartDate() == null : this.getEnrollStartDate().equals(other.getEnrollStartDate()))
            && (this.getEnrollEndDate() == null ? other.getEnrollEndDate() == null : this.getEnrollEndDate().equals(other.getEnrollEndDate()))
            && (this.getParticipationNum() == null ? other.getParticipationNum() == null : this.getParticipationNum().equals(other.getParticipationNum()))
            && (this.getViewNum() == null ? other.getViewNum() == null : this.getViewNum().equals(other.getViewNum()))
            && (this.getIsComment() == null ? other.getIsComment() == null : this.getIsComment().equals(other.getIsComment()))
            && (this.getIsTop() == null ? other.getIsTop() == null : this.getIsTop().equals(other.getIsTop()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
            && (this.getIsTeam() == null ? other.getIsTeam() == null : this.getIsTeam().equals(other.getIsTeam()))
            && (this.getTeamNum() == null ? other.getTeamNum() == null : this.getTeamNum().equals(other.getTeamNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getPersonNum() == null) ? 0 : getPersonNum().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getCover() == null) ? 0 : getCover().hashCode());
        result = prime * result + ((getLocal() == null) ? 0 : getLocal().hashCode());
        result = prime * result + ((getIsEmail() == null) ? 0 : getIsEmail().hashCode());
        result = prime * result + ((getIsToll() == null) ? 0 : getIsToll().hashCode());
        result = prime * result + ((getToll() == null) ? 0 : getToll().hashCode());
        result = prime * result + ((getStartDate() == null) ? 0 : getStartDate().hashCode());
        result = prime * result + ((getEndDate() == null) ? 0 : getEndDate().hashCode());
        result = prime * result + ((getIsSystem() == null) ? 0 : getIsSystem().hashCode());
        result = prime * result + ((getOrganizer() == null) ? 0 : getOrganizer().hashCode());
        result = prime * result + ((getPushId() == null) ? 0 : getPushId().hashCode());
        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
        result = prime * result + ((getEnrollStartDate() == null) ? 0 : getEnrollStartDate().hashCode());
        result = prime * result + ((getEnrollEndDate() == null) ? 0 : getEnrollEndDate().hashCode());
        result = prime * result + ((getParticipationNum() == null) ? 0 : getParticipationNum().hashCode());
        result = prime * result + ((getViewNum() == null) ? 0 : getViewNum().hashCode());
        result = prime * result + ((getIsComment() == null) ? 0 : getIsComment().hashCode());
        result = prime * result + ((getIsTop() == null) ? 0 : getIsTop().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        result = prime * result + ((getIsTeam() == null) ? 0 : getIsTeam().hashCode());
        result = prime * result + ((getTeamNum() == null) ? 0 : getTeamNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", description=").append(description);
        sb.append(", personNum=").append(personNum);
        sb.append(", content=").append(content);
        sb.append(", cover=").append(cover);
        sb.append(", local=").append(local);
        sb.append(", isEmail=").append(isEmail);
        sb.append(", isToll=").append(isToll);
        sb.append(", toll=").append(toll);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", isSystem=").append(isSystem);
        sb.append(", organizer=").append(organizer);
        sb.append(", pushId=").append(pushId);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", enrollStartDate=").append(enrollStartDate);
        sb.append(", enrollEndDate=").append(enrollEndDate);
        sb.append(", participationNum=").append(participationNum);
        sb.append(", viewNum=").append(viewNum);
        sb.append(", isComment=").append(isComment);
        sb.append(", isTop=").append(isTop);
        sb.append(", status=").append(status);
        sb.append(", isDel=").append(isDel);
        sb.append(", isTeam=").append(isTeam);
        sb.append(", teamNum=").append(teamNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}